package yusys;

import com.yusys.ba02.SomeService;
import com.yusys.ba02.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Unit test for simple App.
 */
public class AppTest02 {

    /**
     * Rigorous Test :-)
     */
    @Test
    public void shouldAnswerWithTrue() {
        String config = "application-context.xml";
        ApplicationContext ac = new ClassPathXmlApplicationContext(config);
        SomeService someService = (SomeService) ac.getBean("someService");
        // System.out.println(someService.getClass().getName());
        Student student = someService.doOther2("张三", 16);
        System.out.println(student);
    }
}
